package io.sage.modules.outwarehouse.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import io.sage.modules.outwarehouse.entity.BEmployeeAccessRecord;
import io.sage.modules.outwarehouse.entity.BEmployeeAccessRecordExample;

public interface BEmployeeAccessRecordMapper {
    int countByExample(BEmployeeAccessRecordExample example);

    int deleteByExample(BEmployeeAccessRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BEmployeeAccessRecord record);

    int insertSelective(BEmployeeAccessRecord record);

    List<BEmployeeAccessRecord> selectByExample(BEmployeeAccessRecordExample example);

    BEmployeeAccessRecord selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BEmployeeAccessRecord record, @Param("example") BEmployeeAccessRecordExample example);

    int updateByExample(@Param("record") BEmployeeAccessRecord record, @Param("example") BEmployeeAccessRecordExample example);

    int updateByPrimaryKeySelective(BEmployeeAccessRecord record);

    int updateByPrimaryKey(BEmployeeAccessRecord record);
    
    /**
     * 员工出入库记录列表
     * @param params
     * @return
     */
    List<BEmployeeAccessRecord> selectEmployeeAccessRecordList(Map<String, Object> params);
    
    /**
     * 批量删除
     * @param ids
     * @return
     */
	int deleteBatchIds(Integer[] ids);
    /**
     * 批量插入 通过goodsIds
     * @param params
     * @return
     */
    int insertBatchBygoodsIds(Map<String, Object> params);

    Integer selectNewCount(Map<String, Object> params);
}